﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: VoteEntity.cs
// 修改时间：2020-9-8 10:40:14
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Vote 的实体类.
	/// </summary>
	[Table("Vote")]
	public partial class VoteEntity
	{
		#region Properties
		private System.String _voteTitle = string.Empty;
		/// <summary>
		/// 投票的标题
		/// </summary>
		[Column("VoteTitle",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String VoteTitle
		{
			get {return _voteTitle;}
			set {_voteTitle = value;}
		}
		
		private int? _generalId = 0;
		/// <summary>
		/// 信息ID(主键)
		/// </summary>
		[Column("GeneralId",TypeName="int")]
		[Key]
		public int? GeneralId
		{
			get {return _generalId;}
			set {_generalId = value;}
		}
		
		private System.Boolean _isAlive = false;
		/// <summary>
		/// 是否启用投票
		/// </summary>
		[Column("IsAlive",TypeName="bit")]
		public System.Boolean IsAlive
		{
			get {return _isAlive;}
			set {_isAlive = value;}
		}
		
		private System.String _voteItem = string.Empty;
		/// <summary>
		/// 调查选项
		/// </summary>
		[Column("VoteItem",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String VoteItem
		{
			get {return _voteItem;}
			set {_voteItem = value;}
		}
		
		private DateTime? _startTime = null;
		/// <summary>
		/// 投票开始时间
		/// </summary>
		[Column("StartTime",TypeName="datetime")]
		public DateTime? StartTime
		{
			get {return _startTime;}
			set {_startTime = value;}
		}
		
		private DateTime? _endTime = null;
		/// <summary>
		/// 投票结束时间
		/// </summary>
		[Column("EndTime",TypeName="datetime")]
		public DateTime? EndTime
		{
			get {return _endTime;}
			set {_endTime = value;}
		}
		
		private int? _voteTotal = 0;
		/// <summary>
		/// 投票总数
		/// </summary>
		[Column("VoteTotal",TypeName="int")]
		public int? VoteTotal
		{
			get {return _voteTotal;}
			set {_voteTotal = value;}
		}
		
		private int? _itemType = 0;
		/// <summary>
		/// 投票选项类型
		/// </summary>
		[Column("ItemType",TypeName="int")]
		public int? ItemType
		{
			get {return _itemType;}
			set {_itemType = value;}
		}
		
		#endregion
	}
}
